<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>YaTong企业后台管理 - 主页</title>
    <meta name="keywords" content="YaTong企业后台管理">
    <meta name="description" content="YaTong企业后台管理是由个人通过互联网整理进行维护。">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <link rel="shortcut icon" href="favicon.ico">
    <link th:href="@{css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{css/font-awesome.css}" rel="stylesheet">
    <link th:href="@{css/animate.css}" rel="stylesheet">
    <link th:href="@{css/style.css}" rel="stylesheet">
</head>

<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
    <div id="wrapper">
        <!--左侧导航开始-->
        <div th:replace="common/_tab"></div>
        <!--左侧导航结束-->
        <!--右侧部分开始-->
        <div th:replace="common/_right"></div>
        <!--右侧部分结束-->
        <!--右侧边栏开始-->
        <div th:replace="common/_theme"></div>
        <!--右侧边栏结束-->
    </div>

    <!-- 全局js -->
    <script th:src="@{js/jquery.min.js}"></script>
    <script th:src="@{js/jquery/jquery.fullscreen.js}"></script>
    <script th:src="@{js/bootstrap.min.js}"></script>
    <script th:src="@{js/plugins/metisMenu/jquery.metisMenu.js}"></script>
    <script th:src="@{js/plugins/slimscroll/jquery.slimscroll.min.js}"></script>
    <script th:src="@{js/plugins/layer/layer.min.js}"></script>

    <!-- 自定义js -->
    <script th:src="@{js/hplus.js}"></script>
    <script th:src="@{js/contabs.js}"></script>

    <!-- 第三方插件 -->
    <script th:src="@{js/plugins/pace/pace.min.js}"></script>

</body>

</html>
<script>
    // 全屏显示
    $('#fullScreen').on('click', function () {
        $('#wrapper').fullScreen();
    });

    // 刷新按钮
    $('.tabReload').on('click', refreshTab);

    //刷新iframe
    function refreshTab() {
        var currentId = $('.page-tabs-content').find('.active').attr('data-id');
        var target = $('.J_iframe[data-id="' + currentId + '"]');
        var url = target.attr('src');
        target.attr('src', url).ready();
    }
</script>
